<template>
  <div class="homeview">
    <transition name="ly" mode="out-in">
      <keep-alive>
        <router-view> </router-view>
      </keep-alive>
    </transition>
    <div class="tabbar">
      <router-link to="/homeview/list">首页</router-link>
      <router-link to="/homeview/bao">爆爆团</router-link>
      <router-link to="/homeview/dingdan">订单</router-link>
      <router-link to="/homeview/wode">我的</router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeView",
};
</script>

<style scoped>
.tabbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
  position: fixed;
  bottom: 0;
  width: 100%;
  border-top: 1px solid #ccc;
  box-sizing: border-box;
  background-color: white;
}

.ly-enter {
  /* 入场动画的初始状态 */
  transform: scale(0);
}
.ly-enter-active {
  /* 入场动画执行过程中的状态 */
  transition: all 0.5s;
}
.ly-enter-to {
  /* 入场动画执行结束时的状态 */
  transform: scale(1);
}

.ly-leave {
  /* 离场动画的初始状态 */
  transform: scale(1);
}
.ly-leave-active {
  /* 离场动画执行过程中的状态 */
  transition: all 0.3s;
}
.ly-leave-to {
  /* 离场动画执行结束时的状态 */
  transform: scale(0);
}
</style>

